package wechat.bean.response.message.receive;

import org.dom4j.DocumentException;

import wechat.bean.response.MessageBaseBean;

/**
 * 图片消息
 * 
 *
 */
public class ReceiveImageBean extends MessageBaseBean {
	private String PicUrl;
	private String MediaId;
	
	public ReceiveImageBean(String str) throws DocumentException {
		super(str);
		super.setMsgType(Receive_Message_Image);
	}
	
	public ReceiveImageBean(){
		super.setMsgType(Receive_Message_Image);
	}

	
	public String getPicUrl() {
		return PicUrl;
	}

	public void setPicUrl(String picUrl) {
		PicUrl = picUrl;
	}

	public String getMediaId() {
		return MediaId;
	}

	public void setMediaId(String mediaId) {
		MediaId = mediaId;
	}

	
	protected static final String Xpath_PicUrl = "/xml/PicUrl";
	protected static final String Xpath_MediaId = "/xml/MediaId";
	
	public void transform() throws Exception {
		super.transform();
		this.setPicUrl(getNodeText(Xpath_PicUrl));
		this.setMediaId(getNodeText(Xpath_MediaId));
	}
	
	
//	public String buildXml() throws Exception {
//		super.buildXml();
//		super.addNode("PicUrl", getPicUrl());
//		super.addNode("MediaId", getMediaId());
//		return parent.asXML();
//	}




}
